package io.work1;

import java.io.*;

public class test {
    public static void main(String[] args) throws Exception {
        File file=new File("v12.jpg");
        FileInputStream fis=new FileInputStream(file);
        FileOutputStream fos=new FileOutputStream("v12_cp4.jpg");
        BufferedInputStream bis=new BufferedInputStream(fis);
        BufferedOutputStream bos=new BufferedOutputStream(fos);
        int d;
        while((d=bis.read())!=-1){
            bos.write(d);
        }
        System.out.println("复制完毕");
        bos.close();
        bis.close();
    }
}
